package com.mdsoft.service.impl;

import java.util.List;

import com.mdsoft.dao.PlanDao;
import com.mdsoft.dao.UserDao;
import com.mdsoft.dao.UserDataDao;
import com.mdsoft.po.User;
import com.mdsoft.service.UserDataService;

public class UserDataServiceImpl implements UserDataService {

	private UserDataDao userDataDao;
	
	private PlanDao planDao;
	
	private UserDao userDao;
	
	@Override
	public void importUserData(String filePath) {
		List<User> userData = userDataDao.getUserData(filePath);
		for (User user : userData) {
			userDao.add(user);
		}
		planDao.setPlan(PlanDao.PLAN_WAIT_SET);
	}
	public UserDataDao getUserDataDao() {
		return userDataDao;
	}
	public void setUserDataDao(UserDataDao userDataDao) {
		this.userDataDao = userDataDao;
	}
	public PlanDao getPlanDao() {
		return planDao;
	}
	public void setPlanDao(PlanDao planDao) {
		this.planDao = planDao;
	}
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	
}
